package com.txw.javaCore.model.entity;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;

@Data
public class AppInfo implements Serializable{
    private Integer id;

    @NotBlank(message = "应用名称不能为空！")
    private String name;

    private String detail;

    @NotBlank(message = "发布版本号不能为空！")
    private String version;

    @NotBlank(message = "应用所属操作系统类型不能为空-单选！")
    private String osType;

    @NotBlank(message = "应用终端设备类型列表不能为空-多选！")
    private String device;

    private Byte isActive=1;

    private Date createTime;


    //方便前端处理
    private List<String> deviceTypes=new LinkedList<>();

    //操作系统类型名；设备终端类型名
    private String osTypeName="";
    private String deviceTypeName="";
}